<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
    <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
    <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts-wordcloud.min.js"></script>
    <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts-wordcloud.min.js"></script>
    <script type="text/javascript" src="https://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
    <link href="https://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
    <script src="https://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>

</head>
<body>
<div>
    <div class="navbar navbar-default navbar-fixed-top  navbar-inverse">        {# 导航栏 #}
        <a class="navbar-brand" href="#">全球恐怖袭击数据分析网站</a>
        <div class="container">
            <ul class="nav navbar-nav">
                <li><a href="/people/">死亡人数</a></li>
                <li><a href="/time/">袭击次数</a></li>
                <li><a href="/attack_type/">攻击类型</a></li>
                <li class="active"><a href="/weapon/">武器类型</a></li>
                <li><a href="/target/">目标类型</a></li>
                <li><a href="/organization/">恐怖组织竞赛图</a></li>
            </ul>
            <!--右侧侧-->
        </div>
    </div>
</div>
<div id="16f8c917fa704bb18f828a4ab6f2f6a4" class="chart-container" style="width:900px; height:500px;margin-top: 10%"></div>
<script>
    var chart_16f8c917fa704bb18f828a4ab6f2f6a4 = echarts.init(
        document.getElementById('16f8c917fa704bb18f828a4ab6f2f6a4'), 'white', {renderer: 'canvas'});
    var option_16f8c917fa704bb18f828a4ab6f2f6a4 = {
        "animation": true,
        "animationThreshold": 2000,
        "animationDuration": 1000,
        "animationEasing": "cubicOut",
        "animationDelay": 0,
        "animationDurationUpdate": 300,
        "animationEasingUpdate": "cubicOut",
        "animationDelayUpdate": 0,
        "color": [
            "#c23531",
            "#2f4554",
            "#61a0a8",
            "#d48265",
            "#749f83",
            "#ca8622",
            "#bda29a",
            "#6e7074",
            "#546570",
            "#c4ccd3",
            "#f05b72",
            "#ef5b9c",
            "#f47920",
            "#905a3d",
            "#fab27b",
            "#2a5caa",
            "#444693",
            "#726930",
            "#b2d235",
            "#6d8346",
            "#ac6767",
            "#1d953f",
            "#6950a1",
            "#918597"
        ],
        "series": [
            {
                "type": "wordCloud",
                "shape": "diamond",
                "rotationRange": [
                    0,
                    0
                ],
                "rotationStep": 45,
                "girdSize": 20,
                "sizeRange": [
                    20,
                    100
                ],
                "data": [
                    {
                        "value": 21224,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(6,28,143)"
                            }
                        }
                    },
                    {
                        "name": "Unknown Explosive Type",
                        "value": 45457,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(24,96,36)"
                            }
                        }
                    },
                    {
                        "name": "Unknown Gun Type",
                        "value": 35564,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(42,127,19)"
                            }
                        }
                    },
                    {
                        "name": "Automatic or Semi-Automatic Rifle",
                        "value": 16284,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(139,33,136)"
                            }
                        }
                    },
                    {
                        "name": "Molotov Cocktail/Petrol Bomb",
                        "value": 1355,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(88,149,100)"
                            }
                        }
                    },
                    {
                        "name": "Gasoline or Alcohol",
                        "value": 882,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(7,30,157)"
                            }
                        }
                    },
                    {
                        "name": "Rifle/Shotgun (non-automatic)",
                        "value": 1234,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(14,142,155)"
                            }
                        }
                    },
                    {
                        "name": "Arson/Fire",
                        "value": 4595,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(101,141,72)"
                            }
                        }
                    },
                    {
                        "name": "Pipe Bomb",
                        "value": 668,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(144,35,105)"
                            }
                        }
                    },
                    {
                        "name": "Vehicle",
                        "value": 10172,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(22,121,134)"
                            }
                        }
                    },
                    {
                        "name": "Dynamite/TNT",
                        "value": 1224,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(108,5,67)"
                            }
                        }
                    },
                    {
                        "name": "Pressure Trigger",
                        "value": 252,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(28,84,96)"
                            }
                        }
                    },
                    {
                        "name": "Time Fuse",
                        "value": 805,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(83,81,106)"
                            }
                        }
                    },
                    {
                        "name": "Other Explosive Type",
                        "value": 7491,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(98,67,38)"
                            }
                        }
                    },
                    {
                        "name": "Poisoning",
                        "value": 84,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(71,99,117)"
                            }
                        }
                    },
                    {
                        "name": "Projectile (rockets, mortars, RPGs, etc.)",
                        "value": 10335,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(2,66,45)"
                            }
                        }
                    },
                    {
                        "name": "Handgun",
                        "value": 6747,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(74,131,16)"
                            }
                        }
                    },
                    {
                        "name": "Letter Bomb",
                        "value": 547,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(92,9,81)"
                            }
                        }
                    },
                    {
                        "name": "Blunt Object",
                        "value": 603,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(57,67,22)"
                            }
                        }
                    },
                    {
                        "name": "Sticky Bomb",
                        "value": 1742,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(107,82,44)"
                            }
                        }
                    },
                    {
                        "name": "Grenade",
                        "value": 5441,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(36,57,83)"
                            }
                        }
                    },
                    {
                        "name": "Knife or Other Sharp Object",
                        "value": 2688,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(59,18,42)"
                            }
                        }
                    },
                    {
                        "name": "Landmine",
                        "value": 4509,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(33,103,126)"
                            }
                        }
                    },
                    {
                        "name": "Hands, Feet, Fists",
                        "value": 242,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(159,155,91)"
                            }
                        }
                    },
                    {
                        "name": "Remote Trigger",
                        "value": 2859,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(45,65,142)"
                            }
                        }
                    },
                    {
                        "name": "Rope or Other Strangling Device",
                        "value": 105,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(126,75,107)"
                            }
                        }
                    },
                    {
                        "name": "Explosive",
                        "value": 72,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(43,78,28)"
                            }
                        }
                    },
                    {
                        "name": "Unknown Weapon Type",
                        "value": 134,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(45,51,89)"
                            }
                        }
                    },
                    {
                        "name": "Suffocation",
                        "value": 9,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(4,61,51)"
                            }
                        }
                    },
                    {
                        "name": "Suicide (carried bodily by human being)",
                        "value": 3474,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(130,19,23)"
                            }
                        }
                    },
                    {
                        "name": "Other Gun Type",
                        "value": 86,
                        "textStyle": {
                            "normal": {
                                "color": "rgb(141,104,90)"
                            }
                        }
                    }
                ],
                "drawOutOfBound": false,
                "textStyle": {
                    "emphasis": {}
                }
            }
        ],
        "legend": [
            {
                "data": [],
                "selected": {},
                "show": true,
                "padding": 5,
                "itemGap": 10,
                "itemWidth": 25,
                "itemHeight": 14
            }
        ],
        "tooltip": {
            "show": true,
            "trigger": "item",
            "triggerOn": "mousemove|click",
            "axisPointer": {
                "type": "line"
            },
            "textStyle": {
                "fontSize": 14
            },
            "borderWidth": 0
        },
        "title": [
            {
                "text": "\u6b66\u5668\u7c7b\u578b\u8bcd\u4e91\u56fe",
                "padding": 5,
                "itemGap": 10
            }
        ]
    };
    chart_16f8c917fa704bb18f828a4ab6f2f6a4.setOption(option_16f8c917fa704bb18f828a4ab6f2f6a4);
</script>
</body>
</html>
